<?php
//包含网站配置文件
include '../public/webconfig.php';
//包含数据库配置文件
include '../public/dbconfig.php';
//包含函数库文件
include '../public/func.inc.php';
//调用函数
$link = conn();
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>论坛详情页</title>
		
		<link href="./resource/css/details.css" rel="stylesheet" type="text/css">
	</head>
	<body>
		<div class="header">
			<a href="">设为首页</a>
			<a href="">收藏本站</a>
		</div>
		<div class="one">
			<!--------------------网站logo----------------------->
				<div class="tubiao"><img src="./resource/images/s_<?php echo WZ_LOGO;?> "width="100" height="60"></div>
			<div class="touxiang">
				<table width="500" height="32"  cellspacing="0">
					<tr align="center">
						<td><?php session_start(); echo $_SESSION['uname'];?>在线</td>
						<td>我的<select><option></option></select></td>
						<td><a href="user.php">设置</a></td>
						<td><a href="">消息</a></td>
						<td><a href="">提醒</a><select><option></option></select></td>
						<td><a href="">模块管理</a></td>
						<td><a href="">管理中心</a></td>
						<td><a href="tuichu.php">退出</a></td>
						<td rowspan="2"><img src="../uploads/<?php session_start(); echo $_SESSION['pic'];?>" width="50" height="50"></td>
					
					</tr>
					<tr>
						<td colspan="6"></td>
						<td>积分:13<select><option><option></select></td>
						<td>用户组:管理员<select><option></option></select></td>
					</tr>
				
				</table>
			
			
			</div>
		
		
		
		</div>
		<div class="two">
			<div class="luntan">论坛</div>
			<div class="daohang">导航论坛<select><option></option></select></div>
		</div>
		<div class="sousuo">
				<span style="padding-left:20px;"><input type="text" name="text" placeholder="请搜索内容" style="width:300px"></span>
				<span><select><option value="帖子">帖子</select></span>
				<a href="" style="color:black;font-size:20px;">热搜</a>
				<a href="" style="color:blue;">活动</a>
				<a href="" style="color:blue;">交友</a>
				<a href="" style="color:blue;">discuz</a>
				
		</div>
		<div class="xiaofangzi">
			<a href="" class="xfz3"><img src="./resource/images/2016-10-29_162601.jpg">默认版块</a>
			<div class="xfz1"><img src="./resource/images/2016-10-29_162315.jpg"><a href="">论坛</a></div>
			<div class="xfz2"><img src="./resource/images/2016-10-29_162601.jpg"><a href="">Discuz!</a></div>

		
		</div>
		
		<div class="fatiefanhui">
				
				<input type="image" src="./resource/images/pn_post.png">
				<input type="image" src="./resource/images/pn_reply.png">
				
				
				
				
			
		</div>
		<div class="shanchuzhuti">
			<ul>
				<li style="width:50px;"><a href="">删除主题</a></li>
				<li><a href="">升降</a></li>
				<li><a href="">制顶</a></li>
				<li><a href="">直播</a></li>
				<li><a href="">播放</a></li>
				<li><a href="">高亮</a></li>
				<li><a href="">精华</a></li>
				<li><a href="">关闭</a></li>
				<li><a href="">移动</a></li>
				<li><a href="">分类</a></li>
				<li><a href="">复制</a></li>
				<li><a href="">合并</a></li>
				<li><a href="">分割</a></li>
				<li><a href="">修复</a></li>
				<li><a href="">警告</a></li>
				<li><a href="">屏蔽</a></li>
				<li><a href="">标签</a></li>
				
			</ul>
		</div>
		<div class="chakanhuifuhezi">
			<div class="chakanhuifu">
				<ul>
					<li><a href="">查看:0</a></li>
					<li><a href="">回复:0</a></li>
				
				</ul>
				
			</div>
			<div class="biaoti">
				<ul>
					<li><a href="">标题</a></li>
					<li><a href="" style="color:#E8EFF5;font-size:14px;">[复制链接]</a></li>
				
				</ul>
			
			
			</div>
			<div class="tuxianganniu">
				<input type="image" src="./resource/images/2016-10-30_185703.jpg">
				<input type="image" src="./resource/images/2016-10-30_185742.jpg">
				<input type="image" src="./resource/images/2016-10-30_185810.jpg">
			</div>
		</div>
		<?php
			$id = $_GET['id'];
			//var_dump($id);
			$sql = "select * from bbs_post where id={$id}";
			//var_dump($sql);
			//exit;
			$res = mysqli_query($link,$sql);
			if($res){
			
			while($cinfo = mysqli_fetch_assoc($res)){
		?>
		
		
			<div class="admin">
				<div class="admin1">
					<ul>
					<li><a href=""><?php session_start(); echo $_SESSION['uname'];?></a></li>
					</ul>
				
				
				</div>
				<div class="zuozhe">
				
					<ul>
						<li><a href="">发表于刚刚</a></li>
						<li><a href="">只看该作者</a></li>
				
					</ul>
					
				
				
			
			
				</div>
				<div class="louzhu">
					楼主&nbsp;电梯直达<input type="text" name="text" style="width:20px;">
				</div>
				
			</div>
			<div class="zjneirong">
				<div style="width:600px;height:240px;float:right;padding:10px;"><?php echo $cinfo['content'];?></div>
				
				<div style="float:right;width:600px;height:20px;">
						<img src="./resource/images/2016-10-30_214449.jpg"><a href="./fatie.php?id=<?php echo $cinfo['id'];?>">回复</a>
						<img src="./resource/images/2016-10-30_214517.jpg"><a href="">编辑</a>
						<img src="./resource/images/2016-10-30_214537.jpg"><a href="">推送</a>
				</div>
						
					<div style="width:140px;height:300px;background:#E8EFF5;">
						<div class="hjkl"><img src="../uploads/<?php session_start(); echo $_SESSION['pic'];?>" width="100" height="100"></div>
						<div style="padding-top:120px;">
							<table width="120" height="5" >
							<tr>
								<th>1</th>
								<th>1</th>
								<th>5</th>
								
							</tr>
							<tr>
								<th>主题</th>
								<th>帖子</th>
								<th>积分</th>
						
							</tr>
					
					
					
					
							</table>
							<ul style="padding-left:20px;font-size:12px;">
							<li>管理员</li>
							<li><img src="./resource/images/2016-10-30_211633.jpg"></li>
							<li>积分</li>
							<li>IP 编辑禁止帖子清理</li>
							</ul>
						</div>
						
						
					</div>
					
					
				
				
			</div>
			
			
			
			
			<?php
				}
			}
			?>
			
			
			
			<div style="clear:both;"></div>
		
		
		
			
					
					
			<div class="yewei">
				<div class="yeweiyou">
					<ul>
						
						<li style="color:black;">站点统计</li>
						<li style="color:black;">举报</li>
						<li>Archiver</li>
						<li style="color:black;">手机版</li>
						<li style="color:black;" >小黑屋</li>
						<li style="color:black;">Comsenz Inc.<img src="./resource/images/2016-11-03_195749.jpg"></li>
						<p>GMT+8,2015-7-24&nbsp;13:00,processed&nbsp;in&nbsp;1.243252(s),&nbsp;17quenes.</p>
					
					</ul>
				
				
				</div>
				<div>
					<ul>
						<li>Powered$nbsp;<span style="color:black;">DISSOUZ!</span>X3.2</li>
						
						<!-------------网站版权---------------->
						<li><?php echo WZ_BQ;?></li>
					
					</ul>
					
				
				</div>
			
			</div>
				
		
		
		
		
		
	
	
	
	</body>








</html>